def login(name, password, code):
    # if name == 'admin' and password == '123456' and code == '8888':
    #     print('登录成功')
    # else:
    #     print('登录失败')
    if name != 'admin':
        print('用户名错误')
    elif password != '123456':
        print('登录密码错误')
    elif code != '8888':
        print('验证码错误')
    else:
        print('登录成功！')
